#include <stdio.h>

int main(void){

    // 整形
    int a = 123;

    // 无符号整型
    unsigned int b = 123;

    // 字符型 (本质也是整型 -127 ~ 128 或 0 ~ 255)
    char c = 56;

    // 无符号字符型
    unsigned char d = 123;

    // 短整型
    short e = 21;

    // 无符号短整型
    unsigned short j = 365;

    // 长整型
    long f = 159;

    // 无符号长整型
    unsigned long g = 259;

    // 超长整型
    long long h = 55555;

    // 无符号超长整型
    unsigned long long i = 99999;

    printf("a = %d, type = int, size = %d\n", a, sizeof(a));
    printf("b = %d, type = unsigned int, size = %d\n", b, sizeof(b));
    printf("c = %d, type = char, size = %d\n", c, sizeof(c));
    printf("d = %d, type = unsigned char, size = %d\n", d, sizeof(d));
    printf("e = %d, type = short, size = %d\n", e, sizeof(e));
    printf("f = %ld, type = long, size = %d\n", f, sizeof(f));
    printf("g = %ld, type = unsigned long, size = %d\n", g, sizeof(g));
    printf("h = %lld, type = long long, size = %d\n", h, sizeof(h));
    printf("i = %lld, type = unsigned long long, size = %d\n", i, sizeof(i));
    printf("j = %d, type = unsigned short, size = %d\n", j, sizeof(j));

    return 0;
}
